import { EntitySchema } from '@mikro-orm/core';

export class TypechoFan {
  id!: number;
  created?: number = 0;
  uid: number = 0;
  touid: number = 0;
}

export const TypechoFanSchema = new EntitySchema({
  class: TypechoFan,
  properties: {
    id: { primary: true, type: 'number' },
    created: { type: 'number', nullable: true, default: 0 },
    uid: { type: 'number', default: 0 },
    touid: { type: 'number', default: 0 },
  },
});
